﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;

namespace MeterReader.Models
{
    public class MeterDBContext : DbContext
    {
        /// <summary>
        /// 表对象
        /// </summary>
        public DbSet<TableMeters> TMeters { get; set; }

        /// <summary>
        /// 使用依赖注入方式必须得构造函数
        /// </summary>
        /// <param name="options"></param>
        public MeterDBContext(DbContextOptions<MeterDBContext> options)
            : base(options) { }
    }
}